define(["jquery","utils"], function($,utils){

  	function HeatPoint(x,y,opt_TimeStamp){
        this.x = x;
        this.y = y;
        // == null --> prüft auf null oder undefined
        if(opt_TimeStamp == null){
            
            if(HeatPoint.firstClickTime < 0 || HeatPoint.firstClickTime  == null)
                HeatPoint.firstClickTime = new Date().getTime();
            
            this.timeStamp = (new Date().getTime())- HeatPoint.firstClickTime;

        }else this.timeStamp = opt_TimeStamp;

    };
    $.extend(HeatPoint.prototype, {

        getTime :function(){
           return this.timeStamp;
        }
    });
   return HeatPoint;
});
